package com.dongjiantong.farmrecords.service;

import com.dongjiantong.farmrecords.model.FarmRecordsImmunization;
import com.dongjiantong.farmrecords.model.FarmRecordsImmunizationSub;
import com.dongjiantong.mybatis.BaseService;

public interface FarmRecordsImmunizationSubService extends BaseService<FarmRecordsImmunizationSub> {
    /**
     * 根据免疫子表id 查询一条免疫记录信息(即 首免或者二免,三免之类)
     * @param id
     * @return Response<FarmRecordsImmunizationSub>
     */
    FarmRecordsImmunizationSub selectBySubId(Long id);

    /**
     * 新建一条免疫记录 (除首免之外的免疫)
     * @return long 插入数据的id
     */
    Long createOneSub(FarmRecordsImmunization farmRecordsImmunization, FarmRecordsImmunizationSub farmRecordsImmunizationSub, Integer times);

    /**
     * 更新免疫记录子表对应信息的单据可用与否
     * @param vaccineId
     */
    Integer updateDeleteFlag(Long vaccineId);
}
